<template>
  <div @touchmove="touchmove" ref="boxHeight">
    <TopDate></TopDate>
    <SreachAssembly @search-sjuset="searchSjuset"></SreachAssembly>
    <router-view
      :dataLists="searchSesult"
      @change-manhuua="changeManhuua"
      @is-recommend="isrecommend"
      :classPageSixComics="classPageSixComics"
      :chlidTitile="chlidTitile"
      :homeMsg="homeMsg"
    ></router-view>

   
  </div>
</template>

<script>
import TopDate from "@/components/TopDate.vue";
import SreachAssembly from "@/components/SreachAssembly.vue";

export default {
  components: {
    TopDate: TopDate,
    SreachAssembly: SreachAssembly,
   
  },
  data() {
    return {
      
      pageNum: 1,
     
      chlidTitile: "推荐",
      isRecommends: true,
    };
  },
  props: {
    classPageSixComics: {
      type: Array,
    },
    searchSesult:{
      type: Array,
    },
    homeMsg:{
      type:String,
    }
    

  },
  computed: {
  
  },
  methods: {
    isrecommend(is) {
      this.isRecommends = is;
    },
    searchSjuset(data) {
      this.$emit("search-sjuset",data)
    },

    changeManhuua(id) {
      this.$emit("change-manhuua", id);
    },

    touchmove(e) {
      if (e.changedTouches[0].pageY > this.$refs.boxHeight.scrollHeight-1000) {
            this.pageNum += 1;
            this.$emit("getSearchPageNum", this.pageNum);
      }
    },
  },
  created() {
    this.isRecommends = true;
  },
};
</script>

<style lang="less" scoped>
</style>